﻿using System;
using System.Collections.Generic;

namespace ArithemeticSolver
{
	internal class Solver
	{
		private readonly char[] INPUT_SEPRATOR = new[] { ' ', '\t' };

		public float Evaluate(string input)
		{
			var inputParser = new InputParser(input);
			var elements = inputParser.Parse();
			var queue = new Queue<string>(elements);
			var equation = new Equation(queue);
			return equation.Value;
		}
	}	
}